{%extends "base.html"%}
{%block title%}随遇{%endblock%}
{%block sideleft%}{%include "sideleft.html"%}{%endblock%}
{%block content%}
<!--登录成功以后的内容-->
<div class="suiyu">
	<h3><image src='/site_media/css/images/suiyu_yujian.png'/></h3>
	<div id='suiyuer'>
	{%for s in suiyu%}
		<div class='suiyu_image'>
			<image src="{{s.profile_image}}"></image>
		</div>
		<div class='suiyu_info'>
			<span id='suiyu_activity'>{{s.activityname}}</span>
			<span id="suiyu_author">{{s.username}}&nbsp;&nbsp;
			{%ifequal s.gender 'm'%}
				男
			{%else%}
				女
			{%endifequal%}</span>			
			<span id='suiyu_date'>于
			{%ifequal s.date|date:"Y-m-d" "2008-03-08"%}
				最近的活动</br>
			{%else%}
				{{s.date|date:"Y-m-d"}}的活动</br>
			{%endifequal%}
			
			在{{s.city}}
			</span>	
			<span id='suiyu_next'><a href="/activity/{{s.id}}/do"><image src='/site_media/css/images/go.png'/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:suiyu()"><image src='/site_media/css/images/next.png'/></a></span>
		</div>
	{%endfor%}
	
	</div>
	
</div>

{%endblock%}
{%block sideright%}{%include "sideright.html"%}{%endblock%}